/**
 * Created by jiyun on 2017/4/6.
 */

function sexToInt(sex) {
    return sex=="G" || sex=="1" || sex=="男" ? 1 : 0;
}

function getArticleTypeName(articleType) {
    switch (articleType) {
        case 1: return "新闻速递";
        case 2: return "学术活动";
        case 3: return "通知公告";
        case 4: return "信息简报";
        default:return "未分类";
    }
}

function getLibraryTypeName(libraryType) {
    switch (libraryType) {
        case 1: return "智库专刊";
        case 2: return "蓝皮书";
        default:return "未分类";
    }
}

